From ba0f86655cc8a351fd8ab6a9594da310202df8c4 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Sat, 19 Nov 2005 01:59:43 +0100 Subject: [PATCH] Fix support for sxp domain configuration files. Signed-off-by: Christian Limpach --- tools/python/xen/xm/create.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 23ea2ba975..cb4eb96947 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -905,6 +905,9 @@ def parseCommandLine(argv): opts.setopt('name', os.path.basename(opts.getopt('defconfig'))) config = make_config(opts.vals) + if type(config) == str: + config = sxp.parse(file(config))[0] + return (opts, config) -- 2.30.2